package Yang.homework2;

/**
 * 编程实现对OldPhone和NewPhone类进行测试
 */
public class Test {
    public static void main(String[] args) {
        //测试NewPhone类实现IplayGame接口方法
        NewPhone newPhone = new NewPhone();
        newPhone.playGame();
        newPhone.Call();
        newPhone.Message();

        //测试OldPhone继承自CellPhone类的方法
        OldPhone oldPhone = new OldPhone();
        oldPhone.Call();
        oldPhone.Message();
    }
}
